﻿
using System.Windows.Media;
namespace FrameEngine
{
    /// <summary>
    /// 实际控件的一个抽象，可以是button,item等
    /// </summary>
     public interface ICommandUI
    {
        /// <summary>
        /// 设置标题
        /// </summary>
        /// <param name="pCaption"></param>
        void SetCaption(string pCaption);


        /// <summary>
        /// 设置工具提示信息
        /// </summary>
        /// <param name="pToolTip"></param>
        void SetToolTip(string pToolTip);


        /// <summary>
        /// 设置图标
        /// </summary>
        /// <param name="pImageSource"></param>
        void SetImageSource(ImageSource pImageSource);


        /// <summary>
        /// 设置是否被选中
        /// </summary>
        /// <param name="pIsCheced"></param>
        void SetCheckedState(bool pIsCheced);


        /// <summary>
        /// 设置是否可用
        /// </summary>
        /// <param name="pIsEnabled"></param>
        void SetEnabledState(bool pIsEnabled);


        /// <summary>
        /// 设置是否可见
        /// </summary>
        /// <param name="isVisible"></param>
        void SetVisibleState(bool isVisible);


        /// <summary>
        /// 得到命令对象
        /// </summary>
        /// <returns></returns>
        ICommand GetCommand();
    }
}
